{assign var='header' value='header2'}
{include file="top.html"}
<div id="content" class="container main">
    <div class="user-box">
        <form action="" target="iframeNews"  id="forgetform" method="post">
            {if $type eq 'mobile'}
            <div class="form-box">
                <div class="Validform_checktip color01"></div>
                <div class="input">
                    <i class="ap-icon icon-phone"></i>
                    <input name="mobile" id="mobile" class="txt" type="text" placeholder="手机号" datatype="m" nullmsg="请输入手机号" errormsg="手机格式不正确" />
                </div>
            </div>
            {$html_code}
            <div class="form-box">
                <div class="Validform_checktip color01"></div>
                <div class="input code">
                    <i class="ap-icon icon-code"></i>
                    <input class="txt" type="text" placeholder="短信验证码" name="sms_code" id="sms_code" />
                </div>
                <input type="button" value="获取短信" onclick="getSmsVerify('sms_password')" id="btnSms" style="font-size:12px;" />
            </div>
            <input class="btn" name="Submit2" type="submit" value="立 即 找 回">

            {else}
            <div class="form-box">
                <div class="Validform_checktip color01"></div>
                <div class="input">
                    <i class="ap-icon icon-name"></i>
                    <input name="username" class="txt" type="text" placeholder="账号" autocomplete="false" datatype="*" nullmsg="请输入用户名/邮箱/手机" />
                </div>
            </div>
            <div class="form-box">
                <div class="Validform_checktip color01"></div>
                <div class="input">
                    <i class="ap-icon icon-email"></i>
                    <input name="username2" class="txt" type="text" placeholder="邮箱" nullmsg="请输入邮箱" errormsg="邮箱格式不正确" datatype="e" />
                </div>
            </div>
            <input class="btn" name="Submit" type="submit" value="立 即 找 回">
            {/if}
        </form>
    </div>
</div>

{literal}
<script type="text/javascript" src="/style/Validform_min.js"></script>
<script type="text/javascript" src="/style/mobile/js/script.js"></script>
<script type="text/javascript">
    $(function(){
        $("#forgetform").Validform({
            tiptype:function(msg,o,cssctl){ validTip(msg,o,cssctl); },
            showAllError:true
        });
    })
</script>
{/literal}
<iframe name="iframeNews" style="display:none;"></iframe>
</body>
</html>